import {
  Controller,
  Get,
  UseGuards,
} from '@nestjs/common';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { AdminAuthGuard } from "@/common/auth/admin-auth.guard";
import { AudioSynthesisService } from "@/module/audio-synthesis/audio-synthesis.service";

@Controller('/v1/admin/audio-synthesis')
@ApiTags('AudioSynthesis_admin')
@UseGuards(AdminAuthGuard)
export class AudioSynthesisV1AdminController {
  constructor(private readonly audioSynthesisService: AudioSynthesisService) {
  }

  @Get('/clean-oss-file')
  @ApiOperation({ summary: '清理7天前OSS文件' })
  async cleanOssFile(): Promise<void> {
    this.audioSynthesisService.cleanOssFile();
    return;
  }


}
